package com.itheima.article.dto;

import lombok.Data;

import java.util.Date;

@Data
public class ArticleHomeDto {
    //页码
    private Long loaddir;
    //最大时间
    private Date maxBehotTime;
    //最小时间
    private Date minBehotTime;
    //分页大小
    private Long size;
    //频道ID
    private String tag;

    public void checkSize(){
        this.size=(null!=this.size&&this.size>=1&&this.size<=10)?this.size:10;
    }

}
